<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="my" uri="/mytags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<jsp:include page="/admin/jsp/common/HtmlHead.jsp"/>
<title>Insert title here</title>
</head>
<body>
	<s:a action="edit">添加</s:a>
	<table width="100%">
		<tr>
			<th>姓名</th>
			<th>性别</th>
			<th>所授科目</th>
			<th>学历</th>
			<th>邮箱</th>
			<th>操作</th>
		</tr>
		<s:iterator value="teacherList">
		<tr>
			<td>
				<s:property value="realName"/>
			</td>
			<td>
				<s:property value="%{getI18nValue('system.gender',gender)}"/>
			</td>
			<td>
				<s:property value="subject"/>
			</td>
			<td>
				<s:property value="%{getI18nValue('system.education',education)}"/>
			</td>
			<td>
				<s:property value="email"/>
			</td>
			<td>
				<s:a action="edit">
					<s:param name="teacher.id" value="id"/>
					编辑
				</s:a>
				<s:url id="delUrl" action="delete">
					<s:param name="teacher.id" value="id"/>
				</s:url>
				<a href="javascript:deleteConfirm('<s:property value="#delUrl"/>')">
					删除
				</a>
			</td>
		</tr>
		</s:iterator>
	</table>
	<div class="page_ctn">
		<my:pagination totalPageCount="pageBean.totalPageCount" totalRecordCount="pageBean.totalRecordCount"
			pageNo="pageBean.pageNo" theme="number">
			<s:param name="teacher.realName" value="@java.net.URLEncoder@encode(teacher.realName,'utf-8')"/>
			<s:param name="teacher.gender" value="teacher.gender"/>
			<s:param name="teacher.subjectId" value="teacher.subjectId"/>
			<s:param name="teacher.education" value="teacher.education"/>
		</my:pagination>
	</div>
</body>
<jsp:include page="/admin/jsp/common/errorMessage.jsp"/>
</html>